/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2302 - While1
 * <p>Powered by webrx On 2023-06-13 11:43:59
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class While1 {
    public static void main(String[] args) {
        //while(true){
        //    System.out.println("ok");
        //    break;
        //}

        //使用while循环语句输入1 2 3 4 5 6
        int i = 0;
        while (i < 6) {
            System.out.println(++i);
            //break continue
            //break;
        }

        while(true){
            try{
                Thread.sleep(1000);

            }catch(Exception e){
                e.printStackTrace();
            }
            System.out.printf("%tF %<tT %n", System.currentTimeMillis());

        }

    }
}
